// dlg.txt

//		mark_quest_dest(zone,x,y,layer,quest);
//		cancel_out_fight(0,short kill_enc);
//		make_outdoor_enc(short x,short y,short which_enc);
//		set_out_fight_field(short which_field);
// 				which_field is 0-20

begintalkscript;

variables;

short this_sec = 41;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You approach the Kranas city of Isskale. It is a poor and humble place. It is as spread out as the towns to the south, but the buildings are poorer and the people are humbler.";
	text2 = "You pass small groups of clanfolk as you approach. They take pains to keep their distance. As soon as you come into view, they fade into the woods. The Ro of the Kranas know you are here, and they, for the most part, want nothing to do with you.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "The wolves are, indeed, enormous. Their eyes have a look of eerie, almost intelligent cunning. They snuck up quietly, successfully trapping you in the den. They've probably trapped a lot of hunters and miners this way.";
	text2 = "Fortunately, they will soon find that you are no mere miner.";
	
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "The sinister pack of wolves dispatched, you search for treasure once again. Alas, you find nothing of value to humans.";

begintalknode;
	tag = 15;
	condition = gf(141,13) == 0;
	text1 = "Groups of warriors, lightly armored in leather and moving fast, slip through the woods around Isskale.";
	text2 = "One of them gets close enough to you to see who you are. They managed to get shockingly close before you noticed them. They nod grimly at you and then move on.";
	code =
		sf(141,13,1);
	break;
	
begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "A farming clan of the Kranas resides in several wooden halls here. When you come close, they don't immediately disappear. That makes this place unusually friendly.";
	text2 = "The elders of the clan emerge and watch you as you pass.";


begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(80,16) < 115;
	question = "Greet them.";
	text1 = "They bow and chat with you when you approach. They are polite, but very reserved. Whatever you would have to do to earn their trust, you haven't done it.";
	text2 = "You trade pleasantries about the weather and so on. Eventually, it becomes quiet and awkward. You depart.";
	action = END_TALK;

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(80,16) >= 115;
	question = "Greet them.";
	text1 = "They bow and chat with you when you approach. They are polite. Even slightly friendly. They must have heard good things about you.";
	text2 = "You learn that, in addition to farming, they often forage in the woods nearby. They found some things that might be of interest to you.";
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Move by.";
	text1 = "They stood still and watched as you came. They do the same thing as you go.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Trade with them.";
	question = "_Let me see your wares._";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Kranas Clan", "shopdesc.", 33,0,0);	
	break;

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Depart.";
	text1 = "You manage to leave, but not until you are given tea and a light meal. When it's offered, the courtesy of the Rokaj is relentless.";
	action = END_TALK;

	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = gf(141,11) == 0;
	question = "Name";
	text1 = "You find an animal den, dug out into the dirt of the hill face. It is dark inside. It'll take a torch to inspect it properly.";
	text2 = "You take a moment to listen. It's completely quiet.";

begintalknode;
	state = 40;
	nextstate = 41;
	condition = 1;
	question = "Explore.";
	text1 = "You do what any intrepid hunter would do: You light a torch and explore. Inside, you find what is obviously a den of wolves. Based on the size of the markings in the dirt, big ones.";
	text2 = "The beasts were here recently, but they're gone now. It's a fresh den. They are probably out hunting. You find nothing more valuable than gnawed bones.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Just go.";
	text1 = "You decide, for once in your life, to avoid an obvious trap.";
	action = END_TALK;

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "Depart.";
	text1 = "You turn and make your way toward the welcome sunlight. Then you hear the howls.";
	action = END_TALK;
	code =
		sf(141,11,1);
		make_outdoor_enc(88,228,0);
		set_out_fight_field(5);
	break;
	

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				